<template>
  <div class="header">
    城市选择
    <router-link to="/">
      <div class="iconfont header-back">&#xe618;</div>
    </router-link>
  </div>
</template>

<script type="text/javascript">
  export default {
    name: 'CityHeader',
    props: {
      city: String
    }
  }
</script>
<!-- 后面的scoped是必须的，表示它只对当前组件有效，不会影响到其他组件的样式 -->
<style lang="stylus" scoped>
  @import "../../../assets/styles/variables.styl"
  .header
    position: relative
    height: $headerHeight
    line-height: $headerHeight
    overflow: hidden
    text-align: center
    color: #fff
    background: $bgColor

    .header-back
      position: absolute
      top: 0
      left: 0
      width: .64rem
      text-align center
      font-size: .4rem
      color: #fff

</style>
